<script setup lang="ts">
import { ref } from 'vue'

const username = ref('hello Jerry')
import { storeToRefs } from 'pinia'
import { useUserInfoStore } from '@/store/modules/userInfo'

const userInfoStore = useUserInfoStore()
userInfoStore.setLoginPhone('13900991234')
const { userInfo, loginPhone, loginPhoneShow } = storeToRefs(userInfoStore)
console.log(userInfo)
console.log(loginPhone)
console.log(loginPhoneShow)
userInfoStore.setLoginPhone('18800002288')

</script>

<template>
<p>{{ loginPhoneShow }}</p>
<p>{{ username }}</p>
</template>

<style scoped>

</style>
